package com.st.event.demo.strategy.builder;

import com.st.event.demo.strategy.StrategyFactory;
import com.st.event.demo.strategy.StrategyHandler;
import com.st.event.demo.strategy.impl.StrategyHandlerFactory;

import java.util.List;

public class DefaultHandlerFactoryBuilder implements HandlerFactoryBuilder {

    @Override
    public StrategyFactory build(List<StrategyHandler> strategyHandlers) {
        System.out.println("执行6-----------");
        return new StrategyHandlerFactory(strategyHandlers);
    }
}
